package tests.impl;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import auction.*;
import auction.impl.*;

import static org.easymock.EasyMock.*;

public class BidImplTest {
	
	private Bid bid;
	private Auction auctionMock;
	private UserImpl userMock;
	
	@Before
	public void setUp() throws Exception {
		auctionMock = createStrictMock(Auction.class);
		userMock = createStrictMock(UserImpl.class);
		bid = new BidImpl(userMock, auctionMock, 500);
	}

	@After
	public void tearDown() throws Exception {
		auctionMock = null;
		userMock = null;
		bid = null;
	}

	/**
	 * Test
	 */
	@Test
	public void testA() {
		assertEquals(0, 0);
	}
	
	/**
	 * Test du constructeur
	 */
	@Test
	public void testBidImpl() {
		int amount = bid.getAmount();
		assertEquals(0, amount);
	}
}
